import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'

// 移动端适配
import 'lib-flexible/flexible.js'

// 引入全局样式
import '@/assets/scss/index.scss'
// 全局引入按需引入UI库 vant
import { vantPlugins } from './plugins/vant.js'

//全局组件
import components from './plugins/components.js'

// import CustomHeader from 'components/CustomHeader/CustomHeader'

//引入socket.io
// import Socketio from '@/plugins/Socket.io'

createApp(App)
  .use(createPinia())
  .use(router)
  .use(vantPlugins)
  .use(components)
  // .use(Socketio, {
  //   connection: 'http://localhost:3001',
  //   options: {
  //     autoConnection: false,//自动连接socket
  //   },
  // })
  .mount('#app')
